# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=antic
pkgver=0.2.5
pkgrel=1
pkgdesc='Algebraic Number Theory In C'
arch=(loong64 x86_64)
url='https://github.com/wbhart/antic'
license=(LGPL)
depends=(flint)
makedepends=()
source=(https://github.com/wbhart/antic/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('7b236b6226d5730cf66d492f1562c34d4dcf1bdc8775fec2330f560332ab05c1')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --with-flint=/usr --with-gmp=/usr --with-mpfr=/usr

  make
}

check() {
  cd $pkgname-$pkgver
  make check
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
